﻿<Window x:Class="WMSSoft.WinKStart.Settings_NewContextMenuItem"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:properties="clr-namespace:WMSSoft.WinKStart.Properties"
        xmlns:local="clr-namespace:WMSSoft.WinKStart"
        xmlns:viewmodel="clr-namespace:WMSSoft.Lib.WinKStart.ViewModel"       
        x:Name="SettingsNewContextMenuItem"
        Title="{Binding ViewName}" Height="157" Width="365" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow">
    <Window.Resources>
        <!--<ImageBrush x:Key="AddImageBrush" ImageSource="{Binding Source={x:Static local:Properties:Ressources:list_add}}" />-->
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="19*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Button x:Name="btn_Ok" Content="{Binding Cmd_Apply.ViewName}" Grid.Column="0" Height="23" HorizontalAlignment="Right" Margin="0,10,5,5" Width="100" IsDefault="True" Command="{Binding Cmd_Apply.Command}" CommandParameter="{Binding ElementName=SettingsNewContextMenuItem}"/>
            <Button x:Name="btn_Close" Content="{Binding Cmd_Discard.ViewName}" Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="5,10,0,5" Width="100" IsCancel="True" Command="{Binding Cmd_Discard.Command}" CommandParameter="{Binding ElementName=SettingsNewContextMenuItem}" />
        </Grid>
        <Grid Margin="10,10,10,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="20"/>
                <RowDefinition Height="25"/>
                <RowDefinition Height="25"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Label Content="Name:" HorizontalAlignment="Left" Padding="0,0,0,0" Margin="0,2,10,5" VerticalAlignment="Top"/>
            <TextBox Grid.Column="1" TextWrapping="Wrap" Margin="0,0,0,0" Text="{Binding Data.Name}" VerticalContentAlignment="Center"/>
            <Label Content="Caption:" HorizontalAlignment="Left" Padding="0,0,0,0" Margin="0,7,10,5" VerticalAlignment="Top" Grid.Row="1"/>
            <TextBox Grid.Column="1" Grid.Row="1" Margin="0,5,0,0" TextWrapping="Wrap" Text="{Binding Data.Caption}" VerticalContentAlignment="Center"/>            
            <Label Content="Comment:" HorizontalAlignment="Left" Margin="0,5,0,0" Padding="0,2,0,0" VerticalAlignment="Top" Grid.Row="2"/>
            <TextBox Grid.Column="1" Grid.Row="2" Margin="0,5,0,0" TextWrapping="Wrap" Text="{Binding Data.Comment}" VerticalContentAlignment="Center"/>
        </Grid>


    </Grid>
</Window>
